﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@using IdentifyTest.Models;
@{
    Layout = null;
}
@model LoginViewMode

<!--导入模型校验JS-->
@section Scripts {
    <partial name="_ValidationScriptsPartial" />
}

<h5>请你登录或者<a asp-action="Register">注册</a></h5>
<h1>用户登录</h1>
<form asp-action="Login" method="post">
    <div asp-validation-summary="ModelOnly">
    </div>
    <div>
        <label asp-for="UserName"></label>
        <input asp-for="UserName" />
        <span asp-validation-for="UserName"></span>
    </div>
    <div>
        <label asp-for="Password"></label>
        <input asp-for="Password" />
        <span asp-validation-for="Password"></span>
    </div>
        <div>
            <label asp-for="EMail"></label>
            <input asp-for="EMail" />
            <span asp-validation-for="Password"></span>
        </div>
    <div>
        <input type="submit" class="btn btn-primary" value="登录" />
    </div>
</form>

